Skip to content

[3.14] gh-143880: Fix data race in functools.partial in free threading build#143882

Merged
kumaraditya303 merged 1 commit intopython:3.14from
colesbury:gh-143880-partial-vectorcall
Jan 16, 2026
Merged

[3.14] gh-143880: Fix data race in functools.partial in free threading build#143882
kumaraditya303 merged 1 commit intopython:3.14from
colesbury:gh-143880-partial-vectorcall

Conversation

@colesbury
Copy link
Contributor

@colesbury colesbury commented Jan 15, 2026

The assignment to pto->vectorcall isn't thread-safe in the free threading build. Note that this is already fixed in the main branch.

…ng build

The assignment to `pto->vectorcall` isn't thread-safe in the free
threading build. Note that this is already fixed in the main branch.
@kumaraditya303 kumaraditya303 merged commit 0042384 into python:3.14 Jan 16, 2026
55 checks passed
@colesbury colesbury deleted the gh-143880-partial-vectorcall branch February 5, 2026 16:59
@colesbury colesbury added the needs backport to 3.13 bugs and security fixes label Mar 2, 2026
@miss-islington-app
Copy link

Thanks @colesbury for the PR, and @kumaraditya303 for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13.
🐍🍒⛏🤖 I'm not a witch! I'm not a witch!

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 2, 2026
…threading build (pythonGH-143882)

pythongh-143880: Fix data race in `functools.partial` in free threading build

The assignment to `pto->vectorcall` isn't thread-safe in the free
threading build. Note that this is already fixed in the main branch.
(cherry picked from commit 0042384)

Co-authored-by: Sam Gross <colesbury@gmail.com>
@bedevere-app
Copy link

bedevere-app bot commented Mar 2, 2026

GH-145435 is a backport of this pull request to the 3.13 branch.

@bedevere-app bedevere-app bot removed the needs backport to 3.13 bugs and security fixes label Mar 2, 2026
@colesbury
Copy link
Contributor Author

Saw this trigger a test failure in 3.13 TSan, so might as well backport it to 3.13

colesbury added a commit that referenced this pull request Mar 2, 2026
…ing build (GH-143882) (#145435)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants